def count_times(func):
    count = 0

    def inner(*args, **kwargs):
        nonlocal count
        count += 1
        print(f"函数'{func.__name__}',被调用{count}次", end=" ")
        return func(*args, **kwargs)

    return inner


@count_times
def test(xxx):
    print(f"你好,{xxx}")


if __name__ == '__main__':
    for i in range(0, 10):
        test("爱卡西亚")
